package com.dkt.android.mvp.contract

import android.app.Activity
import com.dkt.android.mvp.model.BackUserInfo
import com.dkt.android.mvp.model.UserInfo


/**
 * @author: dtb
 * @email: wendaoyuqin1@gmail.com
 * @createTime: 19-3-12下午1:52
 */

interface UserContract {

    fun isUserLogin(): Boolean

    fun getToken(): String

    fun getUserData(): UserInfo

    fun saveSelf()

    fun updateUserDate(userInfo: BackUserInfo?): Boolean

    fun loginSuccess(userInfo: BackUserInfo?, psw: String): Boolean

    fun loginOut(activity: Activity?)

    fun initUser()

}